﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace WebRole.Models
{
    public class Event
    {
      
        public int Id { get; set; }
        public string Title { get; set; }
        public string Author { get; set; }
        public string Content { get; set; }
        public DateTime PostDate { get; set; }

    }

    public class EventDBContext : DbContext
    {
        public EventDBContext() : base("name=sxzkhstktq") { }
        public DbSet<Event> Event { get; set; }
    }
}